import instance from "@/utils/request";

// 全部分类接口
export function getcategoryalldata(data?: null) {
    return instance({
        method: 'get',
        url: '/catalog/index',
        params: data
    })
}

// 当前分类接口
export function getcurrentcategorydata(data: {
    id: string
}) {
    return instance({
        method: 'get',
        url: '/catalog/current',
        params: data
    })
}